package com.etc.dao;

import com.etc.pojo.User;
import com.etc.pojo.Video;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserPersonageDao {

    /**
     * 修改头像
     * @param user
     * @return
     */
    int updateUserImg(@Param("user") User user, @Param("imgPath") String imgPath);

    /**
     * 通过id查询用户
     * @param user
     * @return
     */
    User queryUserByUserId(@Param("user") User user);

    /**
     * 修改密码
     * @return
     */
    int updateUserPassword(@Param("user") User user, @Param("newPasswoed") String newPasswoed);

    /**
     * 增加Vip
     * @param user
     * @param dataTime
     * @return
     */
    int addUserVip(@Param("user") User user, @Param("dataTime")Integer dataTime );

    /**
     * 增加Vip
     * @param user
     * @param dataTime
     * @return
     */
    int updateUserVipTime(@Param("user") User user, @Param("dataTime")Integer dataTime );

    /**
     * 增加状态
     * @param user
     * @return
     */
    int updateUserVipState(@Param("user") User user);
}
